<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Create a new cursor</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="class.mongogridfscursor.html">MongoGridFSCursor</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="mongogridfscursor.current.html">MongoGridFSCursor::current</a></div>
 <div class="up"><a href="class.mongogridfscursor.html">MongoGridFSCursor</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="mongogridfscursor.construct" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">MongoGridFSCursor::__construct</h1>
  <p class="verinfo">(PECL mongo &gt;=0.9.0)</p><p class="refpurpose"><span class="refname">MongoGridFSCursor::__construct</span> &mdash; <span class="dc-title">Create a new cursor</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-mongogridfscursor.construct-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>MongoGridFSCursor::__construct</strong></span>
    ( <span class="methodparam"><span class="type"><a href="class.mongogridfs.html" class="type MongoGridFS">MongoGridFS</a></span> <code class="parameter">$gridfs</code></span>
   , <span class="methodparam"><span class="type">resource</span> <code class="parameter">$connection</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$ns</code></span>
   , <span class="methodparam"><span class="type">array</span> <code class="parameter">$query</code></span>
   , <span class="methodparam"><span class="type">array</span> <code class="parameter">$fields</code></span>
   )</div>

 </div>


 <div class="refsect1 parameters" id="refsect1-mongogridfscursor.construct-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>

    
     <dt>

      <em><code class="parameter">gridfs</code></em>
     </dt>

     <dd>

      <p class="para">
       Related GridFS collection.
      </p>
     </dd>

       
    
     <dt>

      <em><code class="parameter">connection</code></em>
     </dt>

     <dd>

      <p class="para">
       Database connection.
      </p>
     </dd>

       
    
     <dt>

      <em><code class="parameter">ns</code></em>
     </dt>

     <dd>

      <p class="para">
       Full name of database and collection.
      </p>
     </dd>

       
    
     <dt>

      <em><code class="parameter">query</code></em>
     </dt>

     <dd>

      <p class="para">
       Database query.
      </p>
     </dd>

       
    
     <dt>

      <em><code class="parameter">fields</code></em>
     </dt>

     <dd>

      <p class="para">
       Fields to return.
      </p>
     </dd>

       
   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-mongogridfscursor.construct-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   Returns the new cursor.
  </p>
 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="class.mongogridfscursor.html">MongoGridFSCursor</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="mongogridfscursor.current.html">MongoGridFSCursor::current</a></div>
 <div class="up"><a href="class.mongogridfscursor.html">MongoGridFSCursor</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>
